local thbattle__shennaizi_shende = fk.CreateSkill {

  name = "thbattle__shennaizi_shende",

  tags = {  },

}



thbattle__shennaizi_shende:addEffect(fk.EventPhaseStart, {
  prompt = "#thbattle__shennaizi_shende",
  anim_type = "drawcard",
  can_trigger=function(self, event,target,player, data)
    return target==player and data.phase==Player.Draw and player:hasSkill("thbattle__shennaizi_shende")
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    data.phase_end=true
    local useplayer = room:askForChoosePlayers(player, table.map(room:getOtherPlayers(player), Util.IdMapper), 1, 1,
      "#thbattle__shennaizi_shende-draw",
      thbattle__shennaizi_shende.name, false)
    local targetPlayer = room:getPlayerById(useplayer[1])
    targetPlayer:drawCards(2, thbattle__shennaizi_shende.name)
    local target_card = room:askForCard(targetPlayer, 1, 1, true, thbattle__shennaizi_shende.name, false, ".",
      "#thbattle__shennaizi_shende-give:" .. player.id)[1]
    targetPlayer:showCards(target_card)
    room:obtainCard(player, target_card, true, fk.ReasonGive, targetPlayer, thbattle__shennaizi_shende.name)
    if Fk:getCardById(target_card).suit == Card.Heart then
      player:drawCards(1, thbattle__shennaizi_shende.name)
    end
  end
})

return thbattle__shennaizi_shende